package cn.monkey.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("menu")
public class Menu {
    @TableId(type = IdType.AUTO)
    private Long mid;
    private String menuname;
    private String url;
    private String perm;
    private Long parentid;
    private Integer nodetype;
    private Integer isDelete;
    @TableField(exist = false)
    List<Menu> menuList;
}
